package com.ruoyi.elasticsearch.entity;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;

/**
 * @description:
 * @author: liyang
 * @date: 2025/7/21 15:36
 **/
@Data
@Document(indexName = "articles")
public class Article {

    @Id
    private String id;
    // 标题
    private String title;
    // 内容
    private String content;
    // 作者
    private String author;
}
